﻿using System.Windows;

namespace Iworld.Toolkit.Converter
{
    /// <summary>
    /// 是否匹配转换为Visibility
    /// </summary>
    public class IsMatchToVisibilityConverter : ComparableParameterConverter<Visibility>
    {
        protected override Visibility GetValueFromComparabled(bool isMatch, int retVal)
        {
            return isMatch ? Visibility.Visible : Visibility.Collapsed;
        }
 
    }
}
